#!/usr/bin/env python
# -*- coding:utf-8 -*-

import requests
import re
from bs4 import BeautifulSoup

r = requests.get('https://python123.io/ws/demo.html')
demo = r.text
soup = BeautifulSoup(demo, 'html.parser')
if 0:
    for link in soup.find_all('a'):
        print(link.get('href'))

    for tag in soup.find_all(re.compile('b')):
        print(tag.name)

    print(soup.find_all('p', 'course'))
    print(soup.find_all(id='link1'))    
